package com.situ.mvc.controller;

import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.situ.mvc.common.ServerResponse;
import com.situ.mvc.dao.IDepartmentDao;
import com.situ.mvc.entity.Department;
import com.situ.mvc.service.IDepartmentService;
import com.situ.mvc.service.impl.DepartmentServiceImpl;

@Controller
@RequestMapping(value="/department")
public class DepartmentController {
	private IDepartmentService departmentService = new DepartmentServiceImpl();

	@RequestMapping(value="/one2manyList")
	@ResponseBody
	public List<Department> one2manyList() {
		return departmentService.one2manyList();
	}
}
